I'm building a program that takes an undefined number of inputs store them in arraylists and print o